<template>
	<div class="home">
		<keep-alive>
			<router-view/>
		</keep-alive>
		<tab v-if="showTab"></tab>
		<div v-if="showTab" class="k"></div>
	</div>
</template>

<script>
import tab from '@/components/my/tab.vue';

export default {
	name: 'home',
	components: {tab},
	data() {
		return {
			showTab: true
		};
	},
	watch: {
		$route: {
			handler: function (newValue) {
				this.showTab = newValue.meta.showTab;
			},
			immediate: true
		}
	},
	computed: {},
	created() {

	},
	mounted() {

	},
	methods: {}
};
</script>

<style lang="scss" scoped>
.home {
  .k {
    height: 3.6625rem;
  }
}
</style>